#include "WeaponMgr.h"
#include "DataConfigMgr.h"
#include "Prefabs.h"
#include "Weapon.h"
CWeaponMgr::CWeaponMgr()
{

}

CWeaponMgr::~CWeaponMgr()
{

}

bool CWeaponMgr::init()
{
	if (!Node::init()){
		return false;
	}
	return true;
}

CWeapon* CWeaponMgr::initWeapon(int id)
{
	CWeaponData* weaponDt = CDataConfigMgr::getInstance()->getConfigMgr("WeaponConfigMgr")->getDataByID<CWeaponData*>(id);
	CWeapon* weapon = CWeapon::creatWithDt(weaponDt);
	m_vecWeapon.push_back(weapon);
	return weapon;
}
 